import request from '@/utils/request'

export function importExcel(data){
  return request({
    url:"/system/ceScore/selectSrsCeScoreStudent",
    method:"post",
    data:data
  });
}

//导出综合评价
export function toExport(params={}) {
  return request({
    url: '/system/teacher/exportzhpj',
    method: 'get',
    params
  })
}

//连表查询
export function listLeftJoin(query){
  return request({
    url:"/system/ceScore/SrsCeScoreStudentStuYear",
    method:"post",
    params:query
  });
}


// 查询综合评价列表
export function listCeScore(query) {
  return request({
    url: '/system/ceScore/list',
    method: 'get',
    params: query
  })
}

// 查询综合评价详细
export function getCeScore(id) {
  return request({
    url: '/system/ceScore/' + id,
    method: 'get'
  })
}

// 新增综合评价
export function addCeScore(data) {
  return request({
    url: '/system/ceScore',
    method: 'post',
    data: data
  })
}

// 修改综合评价
export function updateCeScore(data) {
  return request({
    url: '/system/ceScore/update',
    method: 'post',
    data: data
  })
}

// 删除综合评价
export function delCeScore(id) {
  return request({
    url: '/system/ceScore/delete/' + id,
    method: 'post'
  })
}
